<?php
function getPizzasSizes()
{
  global $database;
  $query = $database->query("SELECT * FROM pizza order by id");
  while ($list = @mysql_fetch_array($query)) {
    $id            = $list['id'];
    $name          = $list['name'];
    $price         = $list['price'];
    $topping_price = $list['topping_price'];
    $names .= '' . $name . ': <input type="radio" name="size" value="' . $price . '" onclick="loadToppings(' . $id . ',\'' . $price . '\',\'' . $topping_price . '\',\'' . $name . '\')">';
  } //$list = @mysql_fetch_array($query)
  return '' . $names . '';
}
$smarty->assign('sizes', getPizzasSizes());
?>
